package com.xingxue.shopping.model.service.impl;

import java.util.List;

import com.xingxue.shopping.model.dao.IGoodsDao;
import com.xingxue.shopping.model.dao.impl.GoodsDaoImpl;
import com.xingxue.shopping.model.entity.Pager;
import com.xingxue.shopping.model.persist.Goods;
import com.xingxue.shopping.model.service.IGoodsService;

public class GoodsServiceImpl implements IGoodsService {

	
	private IGoodsDao dao;
	public GoodsServiceImpl()
	{
		dao=new GoodsDaoImpl();
	}
	
	@Override
	public List<Goods> getAll() {
		// TODO Auto-generated method stub
		return dao.getAll();
	}

	@Override
	public Integer addGoods(Goods g) {
		// TODO Auto-generated method stub
		return dao.addGoods(g);
	}

	@Override
	public List<Goods> getDataByPage(Pager pager) {
		// TODO Auto-generated method stub
		return null;
	}

	 
	
}
